package com.ironman.sailboat.mobile.context;

import cn.hutool.core.lang.Singleton;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * description
 * company 铁人科技
 *
 * @author 陈浩杰
 * @date 2024/3/29 12:27
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MockConfigContext {

    /**
     * 跟随教练艇编号
     */
    private String fromTrainingBoatCode;

    /**
     * 租户编号
     */
    private String fromTenantCode;

    /**
     * 级别ID
     */
    private String fromLevelId;

    /**
     * 主舵手ID
     */
    private String fromMHmId;

    /**
     * 租户编号
     */
    private String toTenantCode;

    /**
     * 级别ID
     */
    private String toLevelId;

    /**
     * 模拟主舵手ID
     */
    private String toMHmId;

    /**
     * 模拟主舵手姓名
     */
    private String toMHmName;

    /**
     * 船组颜色
     */
    private String toColor;

    public static void singleton(MockConfigContext mockConfigContext) {
        Singleton.put(mockConfigContext);
    }

    public static MockConfigContext getInstance() {
        return Singleton.get(MockConfigContext.class);
    }

    public static String fromTrainingBoatCode() {
        return getInstance().getFromTrainingBoatCode();
    }

    public static String fromTenantCode() {
        return getInstance().getFromTenantCode();
    }

    public static String fromLevelId() {
        return getInstance().getFromLevelId();
    }

    public static String fromMHmId() {
        return getInstance().getFromMHmId();
    }

    public static String toTenantCode() {
        return getInstance().getToTenantCode();
    }

    public static String toLevelId() {
        return getInstance().getToLevelId();
    }

    public static String toMHmId() {
        return getInstance().getToMHmId();
    }

    public static String toMHmName() {
        return getInstance().getToMHmName();
    }

    public static String toColor() {
        return getInstance().getToColor();
    }
}
